<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>字典管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="${s.base}/css/base/base.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form">
	<input type="hidden" id="id" name="id" value="${sysTableVo.id}" />
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label"><span class="red">*</span>&nbsp;&nbsp;数据库名称</label>
		<div class="layui-input-block">
			<input type="text"  class="layui-input"  name="tableSchema" value="${sysTableVo.tableSchema}"
				   placeholder="请输入数据库名称" readonly autocomplete="off">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label"><span class="red">*</span>&nbsp;&nbsp;表名称</label>
		<div class="layui-input-block">
			<input type="text"  class="layui-input"  name="tableName" value="${sysTableVo.tableName}"
				   placeholder="请输入表名称" readonly autocomplete="off">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label"><span class="red">*</span>&nbsp;&nbsp;模块注解名称</label>
		<div class="layui-input-block">
			<input type="text"  class="layui-input" name="moduleLogName" value="${sysTableVo.moduleLogName}"
				   placeholder="请输入模块注解名称"  lay-verify="required" autocomplete="off">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label"><span class="red">*</span>&nbsp;&nbsp;类注解名称</label>
		<div class="layui-input-block">
			<input type="text"  class="layui-input" name="classLogName" value="${sysTableVo.classLogName}"
				   placeholder="请输入类注解名称"  lay-verify="required" autocomplete="off">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label"><span class="red">*</span>&nbsp;&nbsp;模块名称</label>
		<div class="layui-input-block">
			<input type="text"  class="layui-input" name="moduleName" value="${sysTableVo.moduleName}"
				   placeholder="请输入模块名称"  lay-verify="required" autocomplete="off">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label"><span class="red">*</span>&nbsp;&nbsp;类名称</label>
		<div class="layui-input-block">
			<input type="text"  class="layui-input" name="className" value="${sysTableVo.className}"
				   placeholder="请输入类名称"  lay-verify="required" autocomplete="off">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label"><span class="red">*</span>&nbsp;&nbsp;作者</label>
		<div class="layui-input-block">
			<input type="text"  class="layui-input" name="author" value="shengQiang yu"
				   placeholder="请输入作者"  lay-verify="required" autocomplete="off">
		</div>
	</div>

	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="submitBtn">确定</button>
			<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary cancel">取消</button>
		</div>
	</div>
</form>
<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/base/base.js"></script>
<script type="text/javascript">
    layui.use(['form', 'jquery','baseUtil'], function() {
        var form = layui.form,
            $ = layui.jquery,
            baseUtil = layui.baseUtil;
        //监听提交
        form.on('submit(submitBtn)', function(data){
            baseUtil.postMethodResult("/sysGenerator/createCode",data.field,function (result) {
                //刷新父页面
                parent.location.reload();
            });
            return false;
        });
    });
</script>
</body>
</html>